package com.lotus.lqmp.service.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lotus.lqmp.base.biz.bean.PageQuery;
import com.lotus.lqmp.service.controller.vo.req.ReviewPlanEcuMasterDataQueryReq;
import com.lotus.lqmp.service.controller.vo.resp.ReviewPlanEcuMasterDataResp;
import com.lotus.lqmp.service.dao.entity.ReviewPlanEcuMasterDataDo;
import com.lotus.platform.common.biz.Biz;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 评审记录ECU主数据Service接口
 *
 * @author Shiheng.Liu1
 * @date 2022-03-29
 */
public interface ReviewPlanEcuMasterDataService extends Biz<ReviewPlanEcuMasterDataDo>{

    /**
     * 评审记录ECU主数据查询
     * @param reviewPlanEcuMasterDataQueryReq
     * @return
     */
    Page<ReviewPlanEcuMasterDataResp> queryDriveLogList(PageQuery<ReviewPlanEcuMasterDataQueryReq> reviewPlanEcuMasterDataQueryReq);

    /**
     * 根据评审计划获取主数据信息
     * @param ids
     * @return
     */
    List<ReviewPlanEcuMasterDataDo> getByReviewPlanIds(List<Long> ids);

    /**
     * 根据id逻辑批量删除
     * @param ids
     */
    void logicBatchDelete(List<Long> ids);

    /**
     * 批量还原ecu主数据
     * @param ids
     */
    void restoreMasterData(List<Long> ids);

    /**
     * 评审记录ECU主数据导出
     * @param response
     * @param reviewPlanEcuMasterDataQueryReq
     * @throws IOException
     */
    void handleExportIssueRecords(HttpServletResponse response,
        ReviewPlanEcuMasterDataQueryReq reviewPlanEcuMasterDataQueryReq) throws IOException;

}
